//
//  z_Log.m
//  Template
//
//  Created by zhoubl on 13-6-3.
//  Copyright (c) 2013年 cdeledu. All rights reserved.
//

#import "z_Log.h"

@implementation z_Log

/**
 *	@brief	打印日志
 *
 *	@param 	sourceFile 	源文件
 *	@param 	functionName 	文件名
 *	@param 	lineNumber 	行数
 *	@param 	string 	打印数据
 */
+ (void)file:(char*)sourceFile function:(char*)functionName lineNumber:(int)lineNumber logString:(NSString*)string
{
	NSString *file, *function;
	function = [NSString stringWithCString:functionName encoding:NSUTF8StringEncoding];
    file=[NSString stringWithCString:sourceFile encoding:NSUTF8StringEncoding];
	CLog(@"%@: %d %@; %@", file, lineNumber, function, string);
}

+ (void)Log:(char*)functionName lineNumber:(int)lineNumber logString:(NSString*)string
{
	NSString *function;
	function = [NSString stringWithCString:functionName encoding:NSUTF8StringEncoding];
  
	CLog(@"%@; Line: %d @==>%@", function,lineNumber ,string);
}

@end
